package com.cq.hd.member.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.annotation.JsonFormat;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class MemberCardPageVo implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "次卡名称")
    private String cardName;


    @ApiModelProperty(value = "次卡费用")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal cardCost;

    @ApiModelProperty(value = "活动发布次数")
    private Integer activeCount;

    @ApiModelProperty(value = "经纪人人数")
    private Integer userCount;

    @ApiModelProperty(value = "排序")
    private Integer cardSort;

    @ApiModelProperty(value = "显示状态(1-显示，2-隐藏)")
    private Integer showState;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JSONField(format="yyyy.MM.dd HH:mm:ss")
    private LocalDateTime updateTime;

}
